//
//  BBLoginViewController.swift
//  BiliBiliCore
//
//  Created by 梁先华 on 2021/2/17.
//

import UIKit
import Kingfisher

public class BBLoginViewController: BaseUIViewController {
    
    var logoView: BaseImageView?
    
    public override func viewDidLoad() {
        super.viewDidLoad()
        setupViews()
        
        
    }
    
    func setupViews() {
        
        // 导航
        self.navigationItem.leftBarButtonItem = UIBarButtonItem(image: UIImage(named: "ic_global_back_22x22_", in: BiliBiliCore.bundle, compatibleWith: nil), style: .plain, target: self, action: #selector(backPage))
  
        let image = UIImageView(image: UIImage(named: "login_header_cover_eyes", bundle: BiliBiliCore.bundle!))
        image.frame = CGRect(x: 0, y: 70, width: 200, height: 100)
        
        self.view.addSubview(image)
        
        self.title = "手机号登陆注册"
        // 顶部logo
        self.logoView = BaseImageView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width, height: 70))
        view.addSubview(self.logoView!)
        self.logoView?.image = UIImage(named: "login_header")
        
    }
    
    @objc func backPage() {
        self.dismiss(animated: true) {
            
        }
    }

}
